export const pagination = {
  data () {
    return {
      page: 1,
      limit: 10,
      currentPage: 1
    }
  },
  methods: {
    handleSizeChange (val) {
      this.limit = val
      this.getData({ page: this.page, limit: this.limit })
    },
    handleCurrentChange (val) {
      this.page = val
      this.getData({ page: this.page, limit: this.limit })
    }
  }
}
